package com.lagou.service;

import com.lagou.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    private static final Logger LOGGER = LoggerFactory.getLogger(UserServiceImpl.class);

    //将来客户单要远程调用的方法
    @Override
    public String sayHello(String msg) {
        LOGGER.info("sayHello:{}", msg);
        return "success";
    }

    @Override
    public User userInfo(User user) {
        LOGGER.info("userInfo:{}", user);
        user.setName("cdhdr");
        return user;
    }
}
